package com.terry.bobobo;

import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

/**
 * @author Terry E-mail: yaoxinghuo at 126 dot com
 * @version create: Oct 21, 2010 8:34:09 PM
 */
public class PromptOauthActivity extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.oauth);
		Button button = (Button) findViewById(R.id.gooauth);
		button.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				Bundle bundle = getIntent().getExtras();
				Uri uri = Uri.parse(bundle.getString("url"));
				Intent it = new Intent(Intent.ACTION_VIEW, uri);
				startActivity(it);
				finish();
			}
		});
	}
}
